package com.rivulet.foreign.service;

import com.rivulet.foreign.pojo.User;
import com.rivulet.foreign.pojo.UserInformation;
import com.rivulet.foreign.tools.Results;

import java.util.List;

/**
 * {用户功能接口}
 *
 * @author xujiac
 * @create 2021/6/3
 * @since 1.0.0
 */
public interface UserService {
    /**
     * 登录逻辑
     *
     * @param user
     * @return
     */
    public String loginService(User user);

    /**
     * 批量添加用户
     *
     * @param list
     * @return
     */
    public Results addUser(List<UserInformation> list);

    /**
     * 添加用户信息
     *
     * @param information
     * @return
     */
    public Results setInformation(UserInformation information);

    /**
     * 获得所有用户信息
     *
     * @return
     */
    public Results getAllInformation();

    /**
     * 密码重置
     *
     * @param user
     * @param password
     * @return
     */
    public Results reSetPassword(User user, String password);
}
